package org.example.controller;

import org.example.service.IEvaluateBaseInfoService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/evaluate-base-info")
@CrossOrigin("*")
public class EvaluateBaseInfoController {

    @Resource
    private IEvaluateBaseInfoService evaluateBaseInfoService;

    @GetMapping("/{goodsId}")
    public Result getAllEvaluateBaseInfo(@PathVariable("goodsId") Integer goodsId) {
        return Result.buildSuccess(evaluateBaseInfoService.getEvaluateInfoOfSpecifyGoods(goodsId));
    }
}
